package cn.ococci.dm.Main.Model;


import org.litepal.crud.DataSupport;

/**
 * Created by cyan on 15/9/21.
 *
 */
public class User  extends DataSupport {

    /**
     * 本地数据库id
     */
    private long id;

    /**
     * 用户id
     */
    private long serverId;

    /**
     * 设备的mac地址(也是手机唯一的标志）生成的方式需要将用户的id 以及当前设备的密码结合在一起
     */
    private String phoneMacId;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 性别
     */
    private int gender;
    /**
     * 注册的手机账号
     */
    private String phone;

    /**
     * 所在公司
     */
    private String company;

    /**
     * 公司的id
     */
    private long companyId;

    /**
     * 所在部门
     */
    private String department;

    /**
     * 权限:(1,2,3,4)
     */
    private int roleType;

    // 获取发送的命令号
    private int cardNumber;

    private int cardType = 0;


    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        this.serverId = serverId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }


    public int getRoleType() {
        return roleType;
    }

    public void setRoleType(int roleType) {
        this.roleType = roleType;
    }


    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getPhoneMacId() {
        return phoneMacId;
    }

    public void setPhoneMacId(String phoneMacId) {
        this.phoneMacId = phoneMacId;
    }


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }


    public long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(long companyId) {
        this.companyId = companyId;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }


    public int getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(int cardNumber) {
        this.cardNumber = cardNumber;
    }


    public int getCardType() {
        return cardType;
    }

    public void setCardType(int cardType) {
        this.cardType = cardType;
    }
}
